package com.guonl.model;

import java.util.ArrayList;
import java.util.List;

public class MyCountryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MyCountryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public MyCountryExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public MyCountryExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public static Criteria newAndCreateCriteria() {
        MyCountryExample example = new MyCountryExample();
        return example.createCriteria();
    }

    public MyCountryExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public MyCountryExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTwoLetterIsNull() {
            addCriterion("two_letter is null");
            return (Criteria) this;
        }

        public Criteria andTwoLetterIsNotNull() {
            addCriterion("two_letter is not null");
            return (Criteria) this;
        }

        public Criteria andTwoLetterEqualTo(String value) {
            addCriterion("two_letter =", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterNotEqualTo(String value) {
            addCriterion("two_letter <>", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterGreaterThan(String value) {
            addCriterion("two_letter >", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterGreaterThanOrEqualTo(String value) {
            addCriterion("two_letter >=", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterLessThan(String value) {
            addCriterion("two_letter <", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterLessThanOrEqualTo(String value) {
            addCriterion("two_letter <=", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("two_letter <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTwoLetterLike(String value) {
            addCriterion("two_letter like", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterNotLike(String value) {
            addCriterion("two_letter not like", value, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterIn(List<String> values) {
            addCriterion("two_letter in", values, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterNotIn(List<String> values) {
            addCriterion("two_letter not in", values, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterBetween(String value1, String value2) {
            addCriterion("two_letter between", value1, value2, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andTwoLetterNotBetween(String value1, String value2) {
            addCriterion("two_letter not between", value1, value2, "twoLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterIsNull() {
            addCriterion("three_letter is null");
            return (Criteria) this;
        }

        public Criteria andThreeLetterIsNotNull() {
            addCriterion("three_letter is not null");
            return (Criteria) this;
        }

        public Criteria andThreeLetterEqualTo(String value) {
            addCriterion("three_letter =", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterNotEqualTo(String value) {
            addCriterion("three_letter <>", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterGreaterThan(String value) {
            addCriterion("three_letter >", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterGreaterThanOrEqualTo(String value) {
            addCriterion("three_letter >=", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterLessThan(String value) {
            addCriterion("three_letter <", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterLessThanOrEqualTo(String value) {
            addCriterion("three_letter <=", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("three_letter <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThreeLetterLike(String value) {
            addCriterion("three_letter like", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterNotLike(String value) {
            addCriterion("three_letter not like", value, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterIn(List<String> values) {
            addCriterion("three_letter in", values, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterNotIn(List<String> values) {
            addCriterion("three_letter not in", values, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterBetween(String value1, String value2) {
            addCriterion("three_letter between", value1, value2, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andThreeLetterNotBetween(String value1, String value2) {
            addCriterion("three_letter not between", value1, value2, "threeLetter");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(Integer value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(Integer value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(Integer value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(Integer value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(Integer value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("code <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<Integer> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<Integer> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(Integer value1, Integer value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andEnNameIsNull() {
            addCriterion("en_name is null");
            return (Criteria) this;
        }

        public Criteria andEnNameIsNotNull() {
            addCriterion("en_name is not null");
            return (Criteria) this;
        }

        public Criteria andEnNameEqualTo(String value) {
            addCriterion("en_name =", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameNotEqualTo(String value) {
            addCriterion("en_name <>", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameGreaterThan(String value) {
            addCriterion("en_name >", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameGreaterThanOrEqualTo(String value) {
            addCriterion("en_name >=", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameLessThan(String value) {
            addCriterion("en_name <", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameLessThanOrEqualTo(String value) {
            addCriterion("en_name <=", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("en_name <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEnNameLike(String value) {
            addCriterion("en_name like", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameNotLike(String value) {
            addCriterion("en_name not like", value, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameIn(List<String> values) {
            addCriterion("en_name in", values, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameNotIn(List<String> values) {
            addCriterion("en_name not in", values, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameBetween(String value1, String value2) {
            addCriterion("en_name between", value1, value2, "enName");
            return (Criteria) this;
        }

        public Criteria andEnNameNotBetween(String value1, String value2) {
            addCriterion("en_name not between", value1, value2, "enName");
            return (Criteria) this;
        }

        public Criteria andChNameIsNull() {
            addCriterion("ch_name is null");
            return (Criteria) this;
        }

        public Criteria andChNameIsNotNull() {
            addCriterion("ch_name is not null");
            return (Criteria) this;
        }

        public Criteria andChNameEqualTo(String value) {
            addCriterion("ch_name =", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameNotEqualTo(String value) {
            addCriterion("ch_name <>", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameGreaterThan(String value) {
            addCriterion("ch_name >", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameGreaterThanOrEqualTo(String value) {
            addCriterion("ch_name >=", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameLessThan(String value) {
            addCriterion("ch_name <", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameLessThanOrEqualTo(String value) {
            addCriterion("ch_name <=", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("ch_name <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andChNameLike(String value) {
            addCriterion("ch_name like", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameNotLike(String value) {
            addCriterion("ch_name not like", value, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameIn(List<String> values) {
            addCriterion("ch_name in", values, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameNotIn(List<String> values) {
            addCriterion("ch_name not in", values, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameBetween(String value1, String value2) {
            addCriterion("ch_name between", value1, value2, "chName");
            return (Criteria) this;
        }

        public Criteria andChNameNotBetween(String value1, String value2) {
            addCriterion("ch_name not between", value1, value2, "chName");
            return (Criteria) this;
        }

        public Criteria andPhonePreIsNull() {
            addCriterion("phone_pre is null");
            return (Criteria) this;
        }

        public Criteria andPhonePreIsNotNull() {
            addCriterion("phone_pre is not null");
            return (Criteria) this;
        }

        public Criteria andPhonePreEqualTo(String value) {
            addCriterion("phone_pre =", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreNotEqualTo(String value) {
            addCriterion("phone_pre <>", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreNotEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreGreaterThan(String value) {
            addCriterion("phone_pre >", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreGreaterThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreGreaterThanOrEqualTo(String value) {
            addCriterion("phone_pre >=", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreGreaterThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreLessThan(String value) {
            addCriterion("phone_pre <", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreLessThanColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreLessThanOrEqualTo(String value) {
            addCriterion("phone_pre <=", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreLessThanOrEqualToColumn(MyCountry.Column column) {
            addCriterion(new StringBuilder("phone_pre <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPhonePreLike(String value) {
            addCriterion("phone_pre like", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreNotLike(String value) {
            addCriterion("phone_pre not like", value, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreIn(List<String> values) {
            addCriterion("phone_pre in", values, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreNotIn(List<String> values) {
            addCriterion("phone_pre not in", values, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreBetween(String value1, String value2) {
            addCriterion("phone_pre between", value1, value2, "phonePre");
            return (Criteria) this;
        }

        public Criteria andPhonePreNotBetween(String value1, String value2) {
            addCriterion("phone_pre not between", value1, value2, "phonePre");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private MyCountryExample example;

        protected Criteria(MyCountryExample example) {
            super();
            this.example = example;
        }

        public MyCountryExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.guonl.model.MyCountryExample example);
    }
}